package com;

import com.service.OrderService;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

@ComponentScan(value = "com.service")
@Configuration
public class AppConfig {

    @Bean
    public OrderService orderService1(){
        return new OrderService();
    }
    @Bean
    public OrderService orderService2 (){
        return new OrderService();
    }

}
